package com.xtkj.accountjava.controller;

import com.xtkj.accountjava.base.Result;
import com.xtkj.accountjava.entity.AdConfigEntity;
import com.xtkj.accountjava.service.AdConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;

@RestController
@RequestMapping("/ad_config")
public class AdConfigController {
    @Autowired
    AdConfigService adConfigService;

    @GetMapping(value = "/list")
    public Result getAdConfigs(){
        List<AdConfigEntity> adConfigs = adConfigService.getAdConfig();
        return  Result.ok(adConfigs);
    }

}
